<?php
/**
 *                    _ooOoo_
 *                   o8888888o
 *                   88" . "88
 *                   (| -_- |)
 *                    O\ = /O
 *                ____/`---'\____
 *              .   ' \\| |// `.
 *               / \\||| : |||// \
 *             / _||||| -:- |||||- \
 *               | | \\\ - /// | |
 *             | \_| ''\---/'' | |
 *              \ .-\__ `-` ___/-. /
 *           ___`. .' /--.--\ `. . __
 *        ."" '< `.___\_<|>_/___.' >'"".
 *       | | : `- \`.;`\ _ /`;.`/ - ` : | |
 *         \ \ `-. \_ __\ /__ _/ .-` / /
 * ======`-.____`-.___\_____/___.-`____.-'======
 *                    `=---='
 *
 * .............................................
 *          佛祖保佑             永无BUG
 */

namespace App\Admin\Extensions;

use Encore\Admin\Form\Field;
class Uploader extends  Field
{
    protected $view = 'admin.uploader';

    protected static $css = [
        "/js/webuploader/js/webuploader.css",
        "/js/webuploader/js/style.css",
    ];

    protected static $js = [
        //"/js/webuploader/js/jquery-1.10.2.min.js",
        "/js/webuploader/js/webuploader.js",
        "/js/webuploader/js/md5.js",
       // "/js/webuploader/js/upload.js"
    ];

    public function render()
    {
        $name = $this->formatName($this->column);

        $this->script = <<<EOT
               
EOT;
        return parent::render();
    }
}